package com.app.control 
{
	import com.adobe.cairngorm.control.FrontController;
	import com.app.commands.DoUpdateProfilDosenCommand;
	import com.app.commands.DoUpdateProfilMahasiswaCommand;
	import com.app.commands.GetDataTugasAkhirByIdCommand;
	import com.app.commands.GetDokTaMahasiswaCommand;
	import com.app.commands.GetInfoDosenCommand;
	import com.app.commands.GetInfoMahasiswaCommand;
	import com.app.commands.GetListDosenCommand;
	import com.app.commands.GetListMahasiswaCommand;
	import com.app.commands.GetPengumumanByDosenIdCommand;
	import com.app.commands.GetTugasAkhirMahasiswaCommand;
	import com.app.commands.LoginCommand;
	import com.app.commands.LogoutCommand;

	public class AppControl extends FrontController
	{
		public function AppControl()
		{
			addCommand( AppControl.EVENT_LOGIN, LoginCommand );
			addCommand( AppControl.EVENT_LOGOUT,LogoutCommand);
			addCommand( AppControl.EVENT_GET_INFO_DOSEN,GetInfoDosenCommand);
			addCommand( AppControl.EVENT_GET_LIST_MAHASISWA,GetListMahasiswaCommand);
            addCommand( AppControl.EVENT_GET_DOK_TA_MAHASISWA,GetDokTaMahasiswaCommand);
            addCommand( AppControl.EVENT_GET_INFO_MAHASISWA,GetInfoMahasiswaCommand);
            addCommand( AppControl.EVENT_GET_LIST_DOSEN,GetListDosenCommand);
            addCommand( AppControl.EVENT_GET_TUGAS_AKHIR_MAHASISWA,GetTugasAkhirMahasiswaCommand);
            addCommand( AppControl.EVENT_DO_UPDATE_PROFIL_DOSEN,DoUpdateProfilDosenCommand);
            addCommand( AppControl.EVENT_GET_PENGUMUMAN_BY_DOSEN_ID,GetPengumumanByDosenIdCommand);
            addCommand( AppControl.EVENT_DO_UPDATE_PROFIL_MHS,DoUpdateProfilMahasiswaCommand);
            addCommand( AppControl.EVENT_GET_DATA_TUGAS_AKHIR_BY_ID,GetDataTugasAkhirByIdCommand);
		}
		
		public static const EVENT_LOGIN : String = "login";
		public static const EVENT_LOGOUT : String = "logout"; 
		public static const EVENT_GET_INFO_DOSEN : String = "infodosen";
		public static const EVENT_GET_LIST_MAHASISWA : String = "listmahasiswa";
        public static const EVENT_GET_DOK_TA_MAHASISWA: String = "doktamahasiswa";
        public static const EVENT_GET_INFO_MAHASISWA: String = "infomahasiswa";	
        public static const EVENT_GET_LIST_DOSEN: String = "listdosen";
        public static const EVENT_GET_TUGAS_AKHIR_MAHASISWA: String = "tugasakhirmahasiswa";
        public static const EVENT_DO_UPDATE_PROFIL_DOSEN :String="doupdateprofildosen";
        public static const EVENT_GET_PENGUMUMAN_BY_DOSEN_ID:String="getpengumumanbydosenid";
        public static const EVENT_DO_UPDATE_PROFIL_MHS:String = "doupdateprofilmahasiswa";
        public static const EVENT_GET_DATA_TUGAS_AKHIR_BY_ID:String = "getdatatugasakhirbyid";
	}
}